<div class="loader"></div>
<h3>{{ $text_edit }} {{ $title }}</h3>
{{ Form::model($result, array('route' => array($base . '.update', $result->id), 'method' => 'PUT', 'id' => 'form')) }}
	<div class="form-group text-center">
		<a class="img-thumbnail" data-toggle="image">
			<img id="img-uploadUserImage" user="{{ $result->id }}" class="img-circle" src="{{ ($result->image != null) ? Asset::bea('image/uploads/' . $result->image) : 'http://ic.pics.livejournal.com/mei_ling7/68896192/424651/424651_original.png' }}" />
		</a>
		</br></br>
		{{ Form::hidden('user_image', $result->image) }}
		<a id="button_uploadUserImage" class="btn btn-primary choose-image">Change Image</a>
	</div>
	<div class="form-group">
		{{ Form::label('firstname', $form_firstname) }}
		{{ Form::text('firstname', Input::old('firstname'), array('class' => 'form-control')) }}
		<span class="error text-danger" id="error_firstname"></span>
	</div>
	<div class="form-group">
		{{ Form::label('lastname', $form_lastname) }}
		{{ Form::text('lastname', Input::old('lastname'), array('class' => 'form-control')) }}
		<span class="error text-danger" id="error_lastname"></span>
	</div>
	<div class="form-group">
		{{ Form::label('email', $form_email) }}
		{{ Form::text('email', Input::old('email'), array('class' => 'form-control')) }}
		<span class="error text-danger" id="error_email"></span>
	</div>
	<div class="form-group">
		{{ Form::label('username', $form_username) }}
		{{ Form::text('username', Input::old('username'), array('class' => 'form-control')) }}
		<span class="error text-danger" id="error_username"></span>
	</div>
	<div class="form-group">
		{{ Form::label('password', $form_password) }}
		{{ Form::password('password', array('class' => 'form-control')) }}
		<span class="error text-danger" id="error_password"></span>
	</div>
	<div class="form-group">
		{{ Form::label('password_confirmation', $form_password_confirmation) }}
		{{ Form::password('password_confirmation', array('class' => 'form-control')) }}
		<span class="error text-danger" id="error_password_confirmation"></span>
	</div>
	<div class="form-group">
		{{ Form::label('signature_image', $form_signature_image) }}</br>
		<a class="img-thumbnail" data-toggle="image">
			<img id="img-uploadUserSignatureImage" user="{{ $result->id }}" width="480px" src="{{ ($result->signature_image != null) ? Asset::bea('image/uploads/' . $result->signature_image) : 'http://upload.wikimedia.org/wikipedia/commons/thumb/c/cb/Lindsey_Stirling_signature.svg/305px-Lindsey_Stirling_signature.svg.png'}}" />
		</a>
		</br></br>
		{{ Form::hidden('signature_image', $result->signature_image) }}
		<a id="button_uploadUserSignatureImage" class="btn btn-info choose-image">Change Signature</a>
	</div>
	{{ Form::submit($text_submit, array('class' => 'btn btn-primary', 'id' => 'submit', 'data-loading-text' => $text_loading)) }}
	{{ HTML::link( URL::to($base . '/'), $text_cancel, array('class' => 'btn btn-default', 'id'=> 'cancel')) }}
{{ Form::close() }}
<script src="{{ Asset::bea('javascript/jquery/jquery.' . Backtrack::getRouteName() . '.js') }}"></script>

<script src="{{ Asset::bea('javascript/jquery/jquery.' . Backtrack::getRouteName() . '.js') }}"></script>
